package cn.wizzer.app.user.modules.models.vo;

import cn.wizzer.app.user.modules.models.UserRecharge;
import cn.wizzer.app.user.modules.models.enums.RechargeStatusEnum;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
public class UserRechargeVO extends UserRecharge implements Serializable {

    private String userName;

    private String nickName;

    private String phone;

    private String accountName;

    private String bankName;

    private List steps;

    private String currencyName;

    /**
     * 是否是二次充值用户(0否，1是)
     */
    private boolean oldRechargeUser;

    /**
     * 充值币种汇率
     */
    private BigDecimal rate;

    public static RechargeStep createRechargeStep(){
        return new RechargeStep();
    }

    static
    public class RechargeStep implements Serializable {

        private RechargeStatusEnum status;

        private Long at;

        public RechargeStep() {

        }

        public RechargeStatusEnum getStatus() {
            return status;
        }

        public RechargeStep setStatus(RechargeStatusEnum status) {
            this.status = status;
            return this;
        }

        public Long getAt() {
            return at;
        }

        public RechargeStep setAt(Long at) {
            this.at = at;
            return this;
        }
    }

}
